home *** CD-ROM | disk | FTP | other *** search
-
-
-
- Psetuid(2) Oct. 1, 1991 Psetuid(2)
-
-
- N✓NA✓AM✓ME✓E
- Psetuid, Psetgid - change a process' user or group id
-
- S✓SY✓YN✓NO✓OP✓PS✓SI✓IS✓S
- WORD Psetuid(WORD uid);
- WORD Psetgid(WORD gid);
-
- D✓DE✓ES✓SC✓CR✓RI✓IP✓PT✓TI✓IO✓ON✓N
- _✓P_✓s_✓e_✓t_✓u_✓i_✓d sets the user id of the current process to _✓u_✓i_✓d,
- which must be a number between 0 and 255 inclusive. This
- function call will fail if the user id is not already 0,
- so once a process' user id is set it is fixed. _✓P_✓s_✓e_✓t_✓u_✓i_✓d
- returns _✓u_✓i_✓d, if the call is successful, and EACCDN if the
- process does not have the authority to change its own user
- id (i.e. if its effective user id is not 0 at the time of
- the call).
-
- Similarly, _✓P_✓s_✓e_✓t_✓g_✓i_✓d sets the group id of the current pro-
- cess to _✓g_✓i_✓d, which again must be between 0 and 255. The
- new group id _✓g_✓i_✓d is returned if successful, and EACCDN is
- returned if permission to change groups is denied.
-
- S✓SE✓EE✓E A✓AL✓LS✓SO✓O
- _✓P_✓g_✓e_✓t_✓u_✓i_✓d(2)
-
- B✓BU✓UG✓GS✓S
- Security in MiNT is a joke; don't rely on these calls to
- actually protect you from anything, it's more for informa-
- tional purposes.
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- Version 0.9 MiNT Programmer's Manual 1
-
-
-